import 'dart:convert';
/// token : "131624322624666"
/// name : "dd想1"
/// head : "https://stayao.sharedyxy.com/img/head/default.png"
/// company : "知佰医疗"
/// radom_id : "9b2b43d7-847f-4591-9934-81469e1bbe2a"
/// mobile : "15552751836"

UserInfoModel userInfoModelFromJson(String str) => UserInfoModel.fromJson(json.decode(str));
String userInfoModelToJson(UserInfoModel data) => json.encode(data.toJson());
class UserInfoModel {
  UserInfoModel({
      String? token, 
      String? name, 
      String? head, 
      String? company, 
      String? radomId, 
      String? mobile,}){
    _token = token;
    _name = name;
    _head = head;
    _company = company;
    _radomId = radomId;
    _mobile = mobile;
}

  UserInfoModel.fromJson(dynamic json) {
    _token = json['token'];
    _name = json['name'];
    _head = json['head'];
    _company = json['company'];
    _radomId = json['radom_id'];
    _mobile = json['mobile'];
  }
  String? _token;
  String? _name;
  String? _head;
  String? _company;
  String? _radomId;
  String? _mobile;
UserInfoModel copyWith({  String? token,
  String? name,
  String? head,
  String? company,
  String? radomId,
  String? mobile,
}) => UserInfoModel(  token: token ?? _token,
  name: name ?? _name,
  head: head ?? _head,
  company: company ?? _company,
  radomId: radomId ?? _radomId,
  mobile: mobile ?? _mobile,
);
  String? get token => _token;
  String? get name => _name;
  String? get head => _head;
  String? get company => _company;
  String? get radomId => _radomId;
  String? get mobile => _mobile;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['token'] = _token;
    map['name'] = _name;
    map['head'] = _head;
    map['company'] = _company;
    map['radom_id'] = _radomId;
    map['mobile'] = _mobile;
    return map;
  }

}